package com.huawei.cartservice.client;


import com.huawei.common.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(value = "item-service")
public interface ItemClient {
    @GetMapping("/items/{id}")
    Result getItemById(@RequestHeader("Authorization") String token, @PathVariable("id") Long id);

}
